﻿using DTO.Authorization;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace DAO.IAuthorizationDAO
{
     interface IRoleOnFunc
    {
         bool Insert(RoleOnFuncDTO roleOnFunc);
         bool DeleteByRoleId(String roleId);
         bool DeleteByFunc(String roleFunctionName);
         bool UpdateByParam(RoleOnFuncDTO roleOnFunc, bool active);
         DataTable GetFunctionNameByRoleId(String roleId);
         DataTable GetRoleIdByFunctionName(String functionName);
         DataTable GetALL();
    }
}
